﻿<UserControl x:Class="FXC.SL.UserControls.FXCChart.FXVChart"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:vc="clr-namespace:Visifire.Charts;assembly=SLVisifire.Charts"
    xmlns:toolkit ="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"              
    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
    xmlns:uc="clr-namespace:FXC.SL.UserControls"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <toolkit:DockPanel x:Name="LayoutRoot" Background="White" Loaded="LayoutRoot_Loaded">
        <Grid x:Name="gdChartHolder">
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <vc:Chart Name="rcProduct" Visibility="Collapsed" />
            <vc:Chart Name="rcVolume" Grid.Row="1" Height="100" Visibility="Collapsed" />
            <TextBlock x:Name="tbMsg" Grid.RowSpan="2" Text="当前没有数据!" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" Visibility="Collapsed" />
            <uc:FXCLoading x:Name="fxcLoading" Grid.RowSpan="2" />
        </Grid>
        <telerikNavigation:RadContextMenu.ContextMenu>
            <telerikNavigation:RadContextMenu>
                <telerikNavigation:RadMenuItem x:Name="rimTimelineMenus" Header="时段" SubmenuClosed="rimTimelineMenus_SubmenuClosed">
                    <telerikNavigation:RadMenuItem  Header="1分钟" IsCheckable="True" Tag="1M" Click="TimeLineChange_Click" />
                    <telerikNavigation:RadMenuItem Header="5分钟" IsCheckable="True" Tag="5M" Click="TimeLineChange_Click" />
                    <telerikNavigation:RadMenuItem Header="15分钟" IsCheckable="True" Tag="15M" Click="TimeLineChange_Click" />
                    <telerikNavigation:RadMenuItem Header="30分钟" IsCheckable="True" IsChecked="True" Tag="30M" Click="TimeLineChange_Click" />
                    <telerikNavigation:RadMenuItem Header="1小时(H)" IsCheckable="True" Tag="1H" Click="TimeLineChange_Click" />
                    <telerikNavigation:RadMenuItem Header="4小时" IsCheckable="True" Tag="4H" Click="TimeLineChange_Click" />
                    <telerikNavigation:RadMenuItem Header="日线" IsCheckable="True" Tag="1D" Click="TimeLineChange_Click" />
                    <telerikNavigation:RadMenuItem Header="周线" IsCheckable="True" Tag="1W" Click="TimeLineChange_Click" />
                    <telerikNavigation:RadMenuItem Header="月线" IsCheckable="True" Tag="1MN" Click="TimeLineChange_Click" />
                </telerikNavigation:RadMenuItem>
                <telerikNavigation:RadMenuItem x:Name="rimRefresh" Header="刷新" Click="rimRefresh_Click" />
                <telerikNavigation:RadMenuItem IsSeparator="True" />
                <telerikNavigation:RadMenuItem Header="自动排列" />
                <telerikNavigation:RadMenuItem Header="网格" />
                <telerikNavigation:RadMenuItem Header="成交量" />
                <telerikNavigation:RadMenuItem x:Name="rimIndicator" Header="指标线" IsCheckable="True" IsChecked="True" Click="rimIndicator_Click" />
                <telerikNavigation:RadMenuItem IsSeparator="True" />
                <telerikNavigation:RadMenuItem Header="放大" />
                <telerikNavigation:RadMenuItem Header="缩小" />
                <telerikNavigation:RadMenuItem IsSeparator="True" />
                <telerikNavigation:RadMenuItem x:Name="rmiSaveData" Header="保存数据" Click="rmiSaveData_Click" />
                <telerikNavigation:RadMenuItem x:Name="rmiSaveToImg" Header="保存为图片" Click="rmiSaveToImg_Click" />
                <telerikNavigation:RadMenuItem x:Name="rmiChartProperty"  Header="属性" Click="rmiChartProperty_Click" />
            </telerikNavigation:RadContextMenu>
        </telerikNavigation:RadContextMenu.ContextMenu>
    </toolkit:DockPanel>
</UserControl>
